﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace FlexminAdmin.Forms
{
	public partial class AddHostForm : Form
	{
		public AddHostForm()
		{
			InitializeComponent();
		}

		public string HostAddress
		{
			get { return HostBox.Text; }
		}

		private void HostBox_KeyPress(object sender, KeyPressEventArgs e)
		{
			if (e.KeyChar == '\r')
			{
				this.DialogResult = DialogResult.OK;
				Close();
			}
		}
	}
}